<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="iconv.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="ref.iconv.html">iconv 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.iconv.html">iconv</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="iconv.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="para">
  自 <span class="application">PHP</span> 4.3.0 起，它能够在运行时识别此扩展使用了哪种实现（implementation）。
  <table class="doctable table">
   <caption><strong><code class="literal">iconv</code> 常量</strong></caption>
   
    <thead>
     <tr>
      <th>名称</th>
      <th>类型</th>
      <th>描述</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.iconv-impl">
      <td><strong><code>ICONV_IMPL</code></strong></td>
      <td><span class="type">string</span></td>
      <td>实现（implementation）的名称</td>
     </tr>

     <tr id="constant.iconv-version">
      <td><strong><code>ICONV_VERSION</code></strong></td>
      <td><span class="type">string</span></td>
      <td>实现（implementation）的版本</td>
     </tr>

    </tbody>
   
  </table>

 </p>
 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <p class="para">
   通过这些常量编写依赖于实现的脚本是极其不建议的。
  </p>
 </p></blockquote>
 <p class="para">
  自 <span class="application">PHP</span> 5.0.0 起，以下常量同样有效：
  <table class="doctable table">
   <caption><strong>自 PHP 5.0.0 起的 <code class="literal">iconv</code> 常量</strong></caption>
   
    <thead>
     <tr>
      <th>名称</th>
      <th>类型</th>
      <th>描述</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.iconv-mime-decode-strict">
      <td><strong><code>ICONV_MIME_DECODE_STRICT</code></strong></td>
      <td><span class="type">integer</span></td>
      <td>使用于 <span class="function"><a href="function.iconv-mime-decode.html" class="function">iconv_mime_decode()</a></span> 的位掩码</td>
     </tr>

     <tr id="constant.iconv-mime-decode-continue-on-error">
      <td><strong><code>ICONV_MIME_DECODE_CONTINUE_ON_ERROR</code></strong></td>
      <td><span class="type">integer</span></td>
      <td>使用于 <span class="function"><a href="function.iconv-mime-decode.html" class="function">iconv_mime_decode()</a></span> 的位掩码</td>
     </tr>

    </tbody>
   
  </table>

 </p>
</div>
</div></div></body></html>